home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mastering Web Site Development
/
Microsoft Mastering Web Site Development (Microsoft) (1997).iso
/
Labs
/
Lab06
/
home.asp
next >
Wrap
Text File
|
1997-04-24
|
17KB
|
520 lines
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR"
content="Microsoft FrontPage (Visual InterDev Edition) 2.0">
<title>State University</title>
</head>
<BODY BGCOLOR="#FFFFFF">
<center><img src="images/sutitle.gif">
<HR>
To see the courses we offer, click on one of our popular majors.
<p>
<script language="VBScript">
Sub imgMath_Click()
popClasses.Clear
<%i = 0%>
<!--METADATA TYPE="DesignerControl" startspan
<OBJECT ID="rsClasses" WIDTH=151 HEIGHT=24
CLASSID="CLSID:F602E721-A281-11CF-A5B7-0080C73AAC7E">
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="3986">
<PARAM NAME="_ExtentY" VALUE="635">
<PARAM NAME="_StockProps" VALUE="0">
<PARAM NAME="DataConnection" VALUE="StateU">
<PARAM NAME="CommandText" VALUE="Select Title From Classes Where MajorID=1">
</OBJECT>
-->
<%
fHideNavBar = False
fHideNumber = False
fHideRequery = False
fHideRule = False
stQueryString = ""
fEmptyRecordset = False
fFirstPass = True
fNeedRecordset = False
fNoRecordset = False
tBarAlignment = "Left"
tHeaderName = "rsClasses"
tPageSize = 0
tPagingMove = ""
tRangeType = "Text"
tRecordsProcessed = 0
tPrevAbsolutePage = 0
intCurPos = 0
intNewPos = 0
fSupportsBookmarks = True
fMoveAbsolute = False
If IsEmpty(Session("rsClasses_Recordset")) Then
fNeedRecordset = True
Else
If Session("rsClasses_Recordset") Is Nothing Then
fNeedRecordset = True
Else
Set rsClasses = Session("rsClasses_Recordset")
End If
End If
If fNeedRecordset Then
Set StateU = Server.CreateObject("ADODB.Connection")
StateU.ConnectionTimeout = Session("StateU_ConnectionTimeout")
StateU.CommandTimeout = Session("StateU_CommandTimeout")
StateU.Open Session("StateU_ConnectionString"), Session("StateU_RuntimeUserName"), Session("StateU_RuntimePassword")
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set rsClasses = Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = "Select Title From Classes Where MajorID=1"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = StateU
rsClasses.Open cmdTemp, , 0, 1
End If
On Error Resume Next
If rsClasses.BOF And rsClasses.EOF Then fEmptyRecordset = True
On Error Goto 0
If Err Then fEmptyRecordset = True
If Not IsEmpty(Session("rsClasses_Filter")) And Not fEmptyRecordset Then
rsClasses.Filter = Session("rsClasses_Filter")
If rsClasses.BOF And rsClasses.EOF Then fEmptyRecordset = True
End If
If fEmptyRecordset Then
fHideNavBar = True
fHideRule = True
End If
Do
If fEmptyRecordset Then Exit Do
If Not fFirstPass Then
rsClasses.MoveNext
Else
fFirstPass = False
End If
If rsClasses.EOF Then Exit Do
%>
<!--METADATA TYPE="DesignerControl" endspan-->
popClasses.AddItem "<%= rsClasses("title") %>",<%=i%>
<%i = i+1%>
<!--METADATA TYPE="DesignerControl" startspan
<OBJECT ID="DataRangeFtr1" WIDTH=151 HEIGHT=24
CLASSID="CLSID:F602E722-A281-11CF-A5B7-0080C73AAC7E">
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="3986">
<PARAM NAME="_ExtentY" VALUE="635">
<PARAM NAME="_StockProps" VALUE="0">
</OBJECT>
-->
<%
Loop
If tRangeType = "Table" Then Response.Write "</TABLE>"
If tPageSize > 0 Then
If Not fHideRule Then Response.Write "<HR>"
If Not fHideNavBar Then
%>
<TABLE WIDTH=100% >
<TR>
<TD WIDTH=100% >
<P ALIGN=<%= tBarAlignment %> >
<FORM <%= "ACTION=""" & Request.ServerVariables("PATH_INFO") & stQueryString & """" %> METHOD="POST">
<INPUT TYPE="Submit" NAME="<%= tHeaderName & "_PagingMove" %>" VALUE=" << ">
<INPUT TYPE="Submit" NAME="<%= tHeaderName & "_PagingMove" %>" VALUE=" < ">
<INPUT TYPE="Submit" NAME="<%= tHeaderName & "_PagingMove" %>" VALUE=" > ">
<% If fSupportsBookmarks Then %>
<INPUT TYPE="Submit" NAME="<%= tHeaderName & "_PagingMove" %>" VALUE=" >> ">
<% End If %>
<% If Not fHideRequery Then %>
<INPUT TYPE="Submit" NAME="<% =tHeaderName & "_PagingMove" %>" VALUE=" Requery ">
<% End If %>
</FORM>
</P>
</TD>
<TD VALIGN=MIDDLE ALIGN=RIGHT>
<FONT SIZE=2>
<%
If Not fHideNumber Then
If tPageSize > 1 Then
Response.Write "<NOBR>Page: " & Session(tHeaderName & "_AbsolutePage") & "</NOBR>"
Else
Response.Write "<NOBR>Record: " & Session(tHeaderName & "_AbsolutePage") & "</NOBR>"
End If
End If
%>
</FONT>
</TD>
</TR>
</TABLE>
<%
End If
End If
%>
<!--METADATA TYPE="DesignerControl" endspan-->
popClasses.PopUp
end sub
</script>
<object id="imgMath"
name="imgMath"
classid="CLSID:D4A97620-8E8F-11CF-93CD-00AA00C08FDF"
align="baseline" border="0" width="96" height="96">
<param name="PicturePath" value="images/Math.gif">
<param name="AutoSize" value="-1">
<param name="BorderStyle" value="0">
<param name="SizeMode" value="3">
<param name="Size" value="2540;2540">
<param name="PictureAlignment" value="0">
<param name="VariousPropertyBits" value="19">
</object>
<script language="VBScript">
Sub imgHistory_Click()
popClasses.Clear
<%i = 0%>
<!--METADATA TYPE="DesignerControl" startspan
<OBJECT ID="rsClasses" WIDTH=151 HEIGHT=24
CLASSID="CLSID:F602E721-A281-11CF-A5B7-0080C73AAC7E">
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="3986">
<PARAM NAME="_ExtentY" VALUE="635">
<PARAM NAME="_StockProps" VALUE="0">
<PARAM NAME="DataConnection" VALUE="StateU">
<PARAM NAME="CommandText" VALUE="Select Title from Classes where MajorID = 2">
</OBJECT>
-->
<%
fHideNavBar = False
fHideNumber = False
fHideRequery = False
fHideRule = False
stQueryString = ""
fEmptyRecordset = False
fFirstPass = True
fNeedRecordset = False
fNoRecordset = False
tBarAlignment = "Left"
tHeaderName = "rsClasses"
tPageSize = 0
tPagingMove = ""
tRangeType = "Text"
tRecordsProcessed = 0
tPrevAbsolutePage = 0
intCurPos = 0
intNewPos = 0
fSupportsBookmarks = True
fMoveAbsolute = False
If IsEmpty(Session("rsClasses_Recordset")) Then
fNeedRecordset = True
Else
If Session("rsClasses_Recordset") Is Nothing Then
fNeedRecordset = True
Else
Set rsClasses = Session("rsClasses_Recordset")
End If
End If
If fNeedRecordset Then
Set StateU = Server.CreateObject("ADODB.Connection")
StateU.ConnectionTimeout = Session("StateU_ConnectionTimeout")
StateU.CommandTimeout = Session("StateU_CommandTimeout")
StateU.Open Session("StateU_ConnectionString"), Session("StateU_RuntimeUserName"), Session("StateU_RuntimePassword")
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set rsClasses = Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = "Select Title from Classes where MajorID = 2"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = StateU
rsClasses.Open cmdTemp, , 0, 1
End If
On Error Resume Next
If rsClasses.BOF And rsClasses.EOF Then fEmptyRecordset = True
On Error Goto 0
If Err Then fEmptyRecordset = True
If Not IsEmpty(Session("rsClasses_Filter")) And Not fEmptyRecordset Then
rsClasses.Filter = Session("rsClasses_Filter")
If rsClasses.BOF And rsClasses.EOF Then fEmptyRecordset = True
End If
If fEmptyRecordset Then
fHideNavBar = True
fHideRule = True
End If
Do
If fEmptyRecordset Then Exit Do
If Not fFirstPass Then
rsClasses.MoveNext
Else
fFirstPass = False
End If
If rsClasses.EOF Then Exit Do
%>
<!--METADATA TYPE="DesignerControl" endspan-->
popClasses.AddItem "<%= rsClasses("title") %>",<%=i%>
<%i = i+1%>
<!--METADATA TYPE="DesignerControl" startspan
<OBJECT ID="DataRangeFtr2" WIDTH=151 HEIGHT=24
CLASSID="CLSID:F602E722-A281-11CF-A5B7-0080C73AAC7E">
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="3986">
<PARAM NAME="_ExtentY" VALUE="635">
<PARAM NAME="_StockProps" VALUE="0">
</OBJECT>
-->
<%
Loop
If tRangeType = "Table" Then Response.Write "</TABLE>"
If tPageSize > 0 Then
If Not fHideRule Then Response.Write "<HR>"
If Not fHideNavBar Then
%>
<TABLE WIDTH=100% >
<TR>
<TD WIDTH=100% >
<P ALIGN=<%= tBarAlignment %> >
<FORM <%= "ACTION=""" & Request.ServerVariables("PATH_INFO") & stQueryString & """" %> METHOD="POST">
<INPUT TYPE="Submit" NAME="<%= tHeaderName & "_PagingMove" %>" VALUE=" << ">
<INPUT TYPE="Submit" NAME="<%= tHeaderName & "_PagingMove" %>" VALUE=" < ">
<INPUT TYPE="Submit" NAME="<%= tHeaderName & "_PagingMove" %>" VALUE=" > ">
<% If fSupportsBookmarks Then %>
<INPUT TYPE="Submit" NAME="<%= tHeaderName & "_PagingMove" %>" VALUE=" >> ">
<% End If %>
<% If Not fHideRequery Then %>
<INPUT TYPE="Submit" NAME="<% =tHeaderName & "_PagingMove" %>" VALUE=" Requery ">
<% End If %>
</FORM>
</P>
</TD>
<TD VALIGN=MIDDLE ALIGN=RIGHT>
<FONT SIZE=2>
<%
If Not fHideNumber Then
If tPageSize > 1 Then
Response.Write "<NOBR>Page: " & Session(tHeaderName & "_AbsolutePage") & "</NOBR>"
Else
Response.Write "<NOBR>Record: " & Session(tHeaderName & "_AbsolutePage") & "</NOBR>"
End If
End If
%>
</FONT>
</TD>
</TR>
</TABLE>
<%
End If
End If
%>
<!--METADATA TYPE="DesignerControl" endspan-->
popClasses.PopUp
end sub
</script>
<object id="imgHistory"
name="imgHistory"
classid="CLSID:D4A97620-8E8F-11CF-93CD-00AA00C08FDF"
align="baseline" border="0" width="96" height="96">
<param name="PicturePath" value="images/history.gif">
<param name="AutoSize" value="-1">
<param name="BorderStyle" value="0">
<param name="SizeMode" value="3">
<param name="Size" value="2540;2540">
<param name="PictureAlignment" value="0">
<param name="VariousPropertyBits" value="19">
</object>
<script language="VBScript">
Sub imgMusic_Click()
popClasses.Clear
<% i = 0 %>
<!--METADATA TYPE="DesignerControl" startspan
<OBJECT ID="rsClasses" WIDTH=151 HEIGHT=24
CLASSID="CLSID:F602E721-A281-11CF-A5B7-0080C73AAC7E">
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="3986">
<PARAM NAME="_ExtentY" VALUE="635">
<PARAM NAME="_StockProps" VALUE="0">
<PARAM NAME="DataConnection" VALUE="StateU">
<PARAM NAME="CommandText" VALUE="Select Title from Classes where MajorID=3">
</OBJECT>
-->
<%
fHideNavBar = False
fHideNumber = False
fHideRequery = False
fHideRule = False
stQueryString = ""
fEmptyRecordset = False
fFirstPass = True
fNeedRecordset = False
fNoRecordset = False
tBarAlignment = "Left"
tHeaderName = "rsClasses"
tPageSize = 0
tPagingMove = ""
tRangeType = "Text"
tRecordsProcessed = 0
tPrevAbsolutePage = 0
intCurPos = 0
intNewPos = 0
fSupportsBookmarks = True
fMoveAbsolute = False
If IsEmpty(Session("rsClasses_Recordset")) Then
fNeedRecordset = True
Else
If Session("rsClasses_Recordset") Is Nothing Then
fNeedRecordset = True
Else
Set rsClasses = Session("rsClasses_Recordset")
End If
End If
If fNeedRecordset Then
Set StateU = Server.CreateObject("ADODB.Connection")
StateU.ConnectionTimeout = Session("StateU_ConnectionTimeout")
StateU.CommandTimeout = Session("StateU_CommandTimeout")
StateU.Open Session("StateU_ConnectionString"), Session("StateU_RuntimeUserName"), Session("StateU_RuntimePassword")
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set rsClasses = Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = "Select Title from Classes where MajorID=3"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = StateU
rsClasses.Open cmdTemp, , 0, 1
End If
On Error Resume Next
If rsClasses.BOF And rsClasses.EOF Then fEmptyRecordset = True
On Error Goto 0
If Err Then fEmptyRecordset = True
If Not IsEmpty(Session("rsClasses_Filter")) And Not fEmptyRecordset Then
rsClasses.Filter = Session("rsClasses_Filter")
If rsClasses.BOF And rsClasses.EOF Then fEmptyRecordset = True
End If
If fEmptyRecordset Then
fHideNavBar = True
fHideRule = True
End If
Do
If fEmptyRecordset Then Exit Do
If Not fFirstPass Then
rsClasses.MoveNext
Else
fFirstPass = False
End If
If rsClasses.EOF Then Exit Do
%>
<!--METADATA TYPE="DesignerControl" endspan-->
popClasses.AddItem "<%= rsClasses("title") %>",<%=i%>
<%i = i+1%>
<!--METADATA TYPE="DesignerControl" startspan
<OBJECT ID="DataRangeFtr3" WIDTH=151 HEIGHT=24
CLASSID="CLSID:F602E722-A281-11CF-A5B7-0080C73AAC7E">
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="3986">
<PARAM NAME="_ExtentY" VALUE="635">
<PARAM NAME="_StockProps" VALUE="0">
</OBJECT>
-->
<%
Loop
If tRangeType = "Table" Then Response.Write "</TABLE>"
If tPageSize > 0 Then
If Not fHideRule Then Response.Write "<HR>"
If Not fHideNavBar Then
%>
<TABLE WIDTH=100% >
<TR>
<TD WIDTH=100% >
<P ALIGN=<%= tBarAlignment %> >
<FORM <%= "ACTION=""" & Request.ServerVariables("PATH_INFO") & stQueryString & """" %> METHOD="POST">
<INPUT TYPE="Submit" NAME="<%= tHeaderName & "_PagingMove" %>" VALUE=" << ">
<INPUT TYPE="Submit" NAME="<%= tHeaderName & "_PagingMove" %>" VALUE=" < ">
<INPUT TYPE="Submit" NAME="<%= tHeaderName & "_PagingMove" %>" VALUE=" > ">
<% If fSupportsBookmarks Then %>
<INPUT TYPE="Submit" NAME="<%= tHeaderName & "_PagingMove" %>" VALUE=" >> ">
<% End If %>
<% If Not fHideRequery Then %>
<INPUT TYPE="Submit" NAME="<% =tHeaderName & "_PagingMove" %>" VALUE=" Requery ">
<% End If %>
</FORM>
</P>
</TD>
<TD VALIGN=MIDDLE ALIGN=RIGHT>
<FONT SIZE=2>
<%
If Not fHideNumber Then
If tPageSize > 1 Then
Response.Write "<NOBR>Page: " & Session(tHeaderName & "_AbsolutePage") & "</NOBR>"
Else
Response.Write "<NOBR>Record: " & Session(tHeaderName & "_AbsolutePage") & "</NOBR>"
End If
End If
%>
</FONT>
</TD>
</TR>
</TABLE>
<%
End If
End If
%>
<!--METADATA TYPE="DesignerControl" endspan-->
popClasses.PopUp
end sub
</script>
<object id="imgMusic"
name="imgMusic"
classid="CLSID:D4A97620-8E8F-11CF-93CD-00AA00C08FDF"
align="baseline" border="0" width="96" height="96">
<param name="PicturePath" value="images/Music.gif">
<param name="AutoSize" value="-1">
<param name="BorderStyle" value="0">
<param name="SizeMode" value="3">
<param name="Size" value="2540;2540">
<param name="PictureAlignment" value="0">
<param name="VariousPropertyBits" value="19">
</object>
<object id="popClasses"
classid="CLSID:7823A620-9DD9-11CF-A662-00AA00C066D2"
codebase="controls/iemenu.ocx"
align="baseline" border="0" >
<param name="MenuItem[0]" value="Class 1">
<param name="MenuItem[1]" value="Class 2">
<param name="MenuItem[2]" value="Class 3">
<param name="MenuItem[3]" value="Class 4">
</object>
</CENTER>
</body>
</html>